﻿using System.Windows;

namespace Prompts.Prompting.Views
{
    public partial class PromptTileDataTemplateSelector
    {
        public PromptTileDataTemplateSelector()
        {
            InitializeComponent();
            Loaded += PromptTileDataTemplateSelectorLoaded;
        }

        void PromptTileDataTemplateSelectorLoaded(object sender, RoutedEventArgs e)
        {
            Content = PromptSystem.CreatePromptTileViewProvider().Get(DataContext);

            Loaded -= PromptTileDataTemplateSelectorLoaded;
        }
    }
}
